package day15_Thread.demo05_Thread;
//void join()	等待这个线程的死亡
public class Test {
    public static void main(String[] args) throws Exception{
        MyThread tz = new MyThread("兔子");
        MyThread1 wg = new MyThread1("乌龟");
        tz.setPriority(1);
        wg.setPriority(10);
        tz.start();
        tz.join();//等兔子死亡
        wg.start();
    }
}
